﻿<!--
/*
 * This file is part of SCWS.
 * SCWS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 * 
 * Foobar is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with SCWS.  If not, see <http://www.gnu.org/licenses/>.
 */
 -->
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MaintenanceWindow"
    targetNamespace="http://www.hardac.co.uk/webservices/scws/MaintenanceWindow.xsd"
    elementFormDefault="qualified"
    xmlns="http://www.hardac.co.uk/webservices/scws/MaintenanceWindow.xsd"
    xmlns:mstns="http://www.hardac.co.uk/webservices/scws/MaintenanceWindow.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
    attributeFormDefault="qualified"
>
  <xs:element name="Scws" msdata:IsDataSet="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="MaintenanceWindow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Comments" nillable="true" >
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EndTime" type="xs:dateTime" msdata:AllowDBNull="true" nillable="true" />
              <xs:element name="LastModified" type="xs:dateTime" />
              <xs:element name="ManagementGroupID">
                <xs:simpleType>
                  <xs:annotation>
                    <xs:documentation xml:lang="en-gb">
                      The representation of a GUID
                    </xs:documentation>
                  </xs:annotation>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MonitoringObjectId">
                <xs:simpleType>
                  <xs:annotation>
                    <xs:documentation xml:lang="en-gb">
                      The representation of a GUID
                    </xs:documentation>
                  </xs:annotation>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Reason">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:enumeration value="PlannedOther" />
                    <xs:enumeration value="UnplannedOther" />
                    <xs:enumeration value="PlannedHardwareMaintenance" />
                    <xs:enumeration value="UnplannedHardwareMaintenance" />
                    <xs:enumeration value="PlannedHardwareInstallation" />
                    <xs:enumeration value="UnplannedHardwareInstallation" />
                    <xs:enumeration value="PlannedOperatingSystemReconfiguration" />
                    <xs:enumeration value="UnplannedOperatingSystemReconfiguration" />
                    <xs:enumeration value="PlannedApplicationMaintenance" />
                    <xs:enumeration value="UnplannedApplicationMaintenance" />
                    <xs:enumeration value="ApplicationInstallation" />
                    <xs:enumeration value="ApplicationUnresponsive" />
                    <xs:enumeration value="ApplicationUnstable" />
                    <xs:enumeration value="SecurityIssue" />
                    <xs:enumeration value="LossOfNetworkConnectivity" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ScheduledEndTime" type="xs:dateTime" />
              <xs:element name="StartTime" type="xs:dateTime" />
              <xs:element name="User" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>